tools/xenstore: add support for delaying execution of a xenstore request
authorJuergen Gross <jgross@suse.com>
Thu, 14 Jan 2021 11:41:32 +0000 (12:41 +0100)
committerJuergen Gross <jgross@suse.com>
Thu, 21 Jan 2021 16:30:58 +0000 (17:30 +0100)
commitc5ca1404b47edef53a6b1245574ee9712404c5d4
treec573fd23b705dc4c324f36662241dee40639a99f
parent42f684d2ea6bfab74369c9e5974e1b0f3fa46c1a
tools/xenstore: add support for delaying execution of a xenstore request

Today a Xenstore request is processed as soon as it is seen by
xenstored. Add the framework for being able to delay processing of a
request if the right conditions aren't met.

Any delayed requests are executed at the end of the main processing
loop in xenstored. They can either delay themselves again or just do
their job. In order to enable the possibility of a timeout, the main
loop will be paused for max one second if any requests are delayed.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wl@xen.org>
tools/xenstore/xenstored_core.c
tools/xenstore/xenstored_core.h